diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-12 10:58:39 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-12 10:58:39 +0200 |
| commit | 012a1dc35c69cb51ff15b21f8303787b5299a626 (patch) | |
| tree | d6d39c7259eff637c62126d4739768ea8846647d /src/routes/projects/[id]/+page.server.ts | |
| parent | bd2f982c489b15ce1165c051fdedf35af979f784 (diff) | |
improve projects layout on mobile
Diffstat (limited to 'src/routes/projects/[id]/+page.server.ts')
| -rw-r--r-- | src/routes/projects/[id]/+page.server.ts | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/routes/projects/[id]/+page.server.ts b/src/routes/projects/[id]/+page.server.ts index 19aea9b..3321bcd 100644 --- a/src/routes/projects/[id]/+page.server.ts +++ b/src/routes/projects/[id]/+page.server.ts @@ -8,11 +8,7 @@ import { loadProjectDashboard, loadArchived, } from '$lib/server/services/routines'; -import { - archiveRoutineAction, - completeRoutineAction, - editRoutineAction, -} from '$lib/server/services/routine-actions'; +import { completeRoutineAction } from '$lib/server/services/routine-actions'; import { numericId, parseFormString, @@ -56,21 +52,11 @@ export const actions: Actions = { return { success: true }; }, - editRoutine: async ({ request }) => { - const data = await request.formData(); - return editRoutineAction(data, numericId(data.get('id'))); - }, - complete: async ({ request }) => { const data = await request.formData(); return completeRoutineAction(data, numericId(data.get('id'))); }, - archiveRoutine: async ({ request }) => { - const data = await request.formData(); - return archiveRoutineAction(numericId(data.get('id'))); - }, - archiveProject: async ({ params }) => { await archiveProject(numericId(params.id)); throw redirect(303, '/'); |
